/* 引入基础模块 */
@import "lib-mixins";
@import "lib-reset";

/* 引用公共模块 */
@import "com-header";
@import "com-left-menu";


/* 页面样式 */
.setting-wrapper {
  max-width: 965px;
  width: 90%;
  margin: 0 auto;
  padding-top: 1em;
  padding-left: 1em;
  & > h4 {
    margin: 0.2em 0 0.8em 0;
    font-size: 16px;
  }
}
.member-wrapper {
  background: #fff;
  padding: 10px 20px;
  margin-bottom: 20px;
  .add-item {
    cursor: pointer;
  }
  & > h4 {
    margin: 0 0 1em 0.6em;
    font-size: 14px;
  }
}
.member-item-wrapper {
  position: relative;
  padding-left: 0;
  padding-right: 0;
  .member-info {
    display: none;
    position: absolute;
    top: 90px;
    left: 15px;
    z-index: 99;
    width: 100%;
    border-top-left-radius: 0 !important;
    border-top-right-radius: 0 !important;
    box-sizing: border-box;
    &.well {
      margin-bottom: 0;
      padding: 0;
    }
    ul, li {
      list-style: none;
      margin: 0;
      padding: 2px 0;
    }
    & > ul {
      margin: 5px 15px auto;
      & > li {
        & > i {
          margin-right: 5px;
          color: #717171;
        }
        & > span.gray {
          display: inline-block;
          vertical-align: 0.4em;
          color: #717171;
        }
      }
    }
  }
}
.member-item {
  box-sizing: border-box;
  .rounded(@radius: 2px);
  margin-left: 15px;
  margin-right: 15px;
  padding: 15px 0;
  margin-bottom: 20px;
  background: #fff;
  box-shadow: 1px 1px 2px #ccc,-1px -1px 2px #ccc;
  & > .close-member-item-wrapper {
    display: none;
    position: absolute;
    top: 15px;
    right: 30px;
    z-index: 98;
    color: #717171;
    cursor: pointer;
  }
  ul, li {
    list-style: none;
    padding: 0;
    margin: 0;
  }
  & > ul {
    overflow: hidden;
    margin: auto 19px;
  }
  & > ul > li {
    display: inline-block;
    & > span {
      display: block;
      margin: 0;
      line-height: 1.51em;
      font-size: 1.2em;
      &.add-member {
        line-height: 2.8em;
      }
      &.gray {
        color: #888;
        font-size: 14px;
        line-height: 20px;
      }
    }
  }
}
.add-member-item{
  color: #fff;
  background: #5BB2F9;
}
.blue-round-head, .red-round-head, .white-round-head, .gray-round-head {
  display: inline-block;
  width: 3em;
  height: 3em;
  .rounded(@radius: 50%);
  overflow: hidden;
  vertical-align: middle;
  margin-top: -9px;
  i {
    line-height: 2.1em;
  }
  img{
    width: 100%;
  }
}
.blue-round-head {
  background-color: #5FB3F6;
  color: #fff;
}
.red-round-head {
  background-color: #DA486D;
  color: #fff;
}
.gray-round-head {
  background-color: #919191;
  color: #fff;
}
.white-round-head {
  color: #fff;
}

#delete-tip-danger, #delete-tip-warning {
  .modal-dialog {
    max-width: 312px;
    margin-left: auto;
    margin-right: auto;
  }
}

#add-member {
  .modal-dialog {
    max-width: 360px;
    margin-left: auto;
    margin-right: auto;
  }
  .modal-header {
    padding: 15px 15px 0;
    background: #fff;
    .form-group {
      margin-top: 0;
    }
  }
  .modal-body {
    padding-top: 15px;
    padding-right: 15px;
    padding-left: 15px;
    height: 340px;
    overflow: auto;
  }
}

.search-icon {
  position: absolute;
  bottom: 0.9em;
  left: 0;
  color: #919191;
}

#search-member {
  padding-left: 2em;
}

.add-member-list {
  overflow: hidden;
  & > .form-group > p {
    display: none;
  }
  .empty-tips{
    text-align: center;
    display: block;
    color: #aaa;
  }
  .add-member-list-item {
    overflow: hidden;
    padding-left: 1em;
    padding-bottom: 1em;
    & > div {
      float: left;
    }
  }

  .add-member-list-info {
    cursor: pointer;
    ul, li {
      list-style: none;
      margin: 0;
      padding: 0;
    }
    ul {
      padding-left: 2em;
      li {
        display: inline-block;
        &.add-member-info {
          padding-left: 1.5em;
          vertical-align: -0.8em;
          max-width: 205px;
          overflow: hidden;
          white-space: nowrap;
          text-overflow: ellipsis;
          .gray {
            color: #919191;
            font-size: 0.9em;
          }
        }
      }
    }
    i {
      line-height: 1.8em;
    }
  }
}

.add-member-footer {
  padding: 1em !important;
  background-color: #f2f2f2;
  border-bottom-left-radius: 2px;
  border-bottom-right-radius: 2px;
  & > button.btn-default {
    background-color: #dfdfdf !important;
  }
}

@media (min-width: 320px) and (max-width: 360px) {
  #add-member {
    .modal-dialog {
      margin-left: 5px;
      margin-right: 5px;
    }
  }
}

@media (max-width: 360px) {
  .add-member-list {
    .add-member-list-info {
      ul {
        padding-left: 0.6em;
        li{
          &.add-member-info {
            padding-left: 0.5em;
          }
        }
      }
    }
  }
}

@media (max-width: 767px) {
  //#add-member {
  //  .modal-dialog {
  //    max-height: 480px;
  //  }
  //}
}

